package com.lww.feature.config;

import org.eclipse.jetty.jmx.MBeanContainer;
import org.eclipse.jetty.server.Server;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.web.embedded.jetty.JettyServerCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jmx.support.ConnectorServerFactoryBean;

import java.lang.management.ManagementFactory;

/**
 * @author: liweiwei
 * @date: 2019/8/13
 */
@Configuration
public class JettyJmxConfig {
//    @Bean
//    public ConnectorServerFactoryBean connectorServerFactoryBean() throws Exception {
//        final ConnectorServerFactoryBean connectorServerFactoryBean = new ConnectorServerFactoryBean();
//        String jmxURL = "service:jmx:jmxmp://localhost:1099/";
//        connectorServerFactoryBean.setServiceUrl(jmxURL);
//    }
}
